import request from '@/api/index'
import { ServiceType } from '@coolphk/shared-types/low-code'

const parentURL = '/service'

export const getServiceListByThingId = (thingId: string) => {
  /*return serviceApi.getServicePage({
    pageNo: 1,
    pageSize: 100,
    thingId,
  })*/
}
export const getServiceById = (id: number): Promise<ServiceType> => {
  // return request.get<Service>(`${parentURL}/${id}`)
  /*const service: ServiceType = {
    id: '1',
    code: 'getPatientInfoList',
    name: '病人信息列表',
    description: '病人信息列表',
    method: 'GET',
    thingId: '200',
    currentVersionId: '2',
  }
  return makePromiseResult(service)*/
  return request.ServiceApi.getService(id)
}

